<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>前台报名量</title>
<jsp:include page="../../../inc.jsp"></jsp:include>
<script type="text/javascript">
var submitForm = function() {
	if ($('form').form('validate')) {
		$.post("getQianTaiBaoMingLiang", cxw.serializeObject($('form')), function(
				jsonData) {			
			/* 市场中的controller都在controller下的MarketStatisticsController来进行后台逻辑的处理 */
				$("#container").highcharts({	
					   title:{
							      text: '前台报名量'   
							  },
		               xAxis:{
		            	  	 categories:jsonData.xAxis.categories
		            	   },
		           	   labels:{
		            			      items: [{
		            			         html: '销售员业绩',
		            			            style: {
		            			               left: '1px',
		            			               top: '1px',
		            			               color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
		            			            }
		            			      }]
		            			   },
		           		series:jsonData.series.series
		               });
	})}};
	
	function init() {
		$('#starttime').datebox({
			required : true,
			value : getPreOneMonths()
		});
		$('#endtime').datebox({
			required : true,
			value : getCurrentDate()
		});
		$("#btn_save").click(function() {
			submitForm();
		});
	}
	$(function() {
		init();
	});
</script>
</head>

<body>
<form method="post" class="form">
<div style="text-align:center">
	经办人报名统计：<input id="starttime" type="text" name="starttime" class="easyui-datebox" style="width: 200px;" required="required">
	到<input id="endtime" type="text" name="endtime" class="easyui-datebox" style="width: 200px;" required="required"> 
	<select name="studentType" class="easyui-combobox" data-options="required:true,editable:false,panelHeight:'auto'" style="width: 155px;">
									<option value="1">新生</option>
									<option value="3">老生</option>
									<option value="2">插班</option>	
			</select>
			 <a href="javascript:void(0);" id="btn_save"
						class="easyui-linkbutton"
						data-options="iconCls:'ext-icon-zoom',plain:true">查询</a>
</div>

		<div id="container" style="width: 650px; height: 650px; margin: 0 auto"></div>
		
</form>
</body>
</html>